<%@ page session="true"%>
<%@ page contentType="text/html;charset=UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form" %>

<html>
	<head>
		<title>Music Portal</title>
		<link rel="stylesheet" type="text/css" href="<c:url value="/css/main.css"/>" />
	</head>
	<body>
		<div id="menu">
		        <h1 style="text-align: center">Music Portal<h1>
		        <hr>

				<c:choose>
					<c:when test="${empty sessionScope._user}">
						<a href="/lab02-music-portal/music/login">Login</a>
						<br>
						<a href="/lab02-music-portal/music/register">Register</a>
						<br>
					</c:when>
					<c:otherwise>
						<p class="welcome">
						Welcome, <c:out value="${sessionScope._user.userName}" />!						
						</p>
						<a href="/lab02-music-portal/music/change_password">Change password</a>
						<br>
						<a href="/lab02-music-portal/music/logout">Logout</a>
						<br>
					</c:otherwise>
				</c:choose>
				
				<c:if test="${not empty sessionScope._user && sessionScope._user.isAdmin eq 'Y'}">
		        <hr>
				<a href="/lab02-music-portal/music/user_listall">Users</a>
				</c:if>
				
		        <hr>
				<a href="/lab02-music-portal/music/genre_listall">Genres</a>
				<br>
				<a href="/lab02-music-portal/music/person_listall">People</a>
				<br>
					<a href="/lab02-music-portal/music/artist_listall">Artists</a>
				<br>
					<a href="/lab02-music-portal/music/album_listall">Albums</a>
				<hr>
				<a href="/lab02-music-portal/">Home</a>
		</div>
		<div id="content">
